package com.example.ymm.modules1.mapper.hl;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.hl.dkn.DknForecastProduct;
import com.example.ymm.modules1.entity.ms.VckStock;
import com.example.ymm.modules1.query.hl.DknForecastProductQueryCriteria;
import com.example.ymm.modules1.service.dto.dkn.DknForecastStockDto;
import com.example.ymm.modules1.service.dto.dkn.DknNotInOrderDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface DknForecastProductMapper extends CoreMapper<DknForecastProduct> {

    /**
     * 获取3个月前的备货订单
     * @param criteria
     * @return
     */
    List<DknNotInOrderDto> getNotInOrders(DknForecastProductQueryCriteria criteria);


    /**
     * 查询库存
     * @param criteria
     * @return
     */
    List<DknForecastStockDto> getForecastStock(DknForecastProductQueryCriteria criteria);


    /**
     * 销售发货出库单
     * @param criteria
     * @return
     */
    List<DknForecastStockDto> outbillList(DknForecastProductQueryCriteria criteria);

}